<?php
/**
 * Magento Enterprise Edition
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Magento Enterprise Edition End User License Agreement
 * that is bundled with this package in the file LICENSE_EE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.magento.com/license/enterprise-edition
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magento.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magento.com for more information.
 *
 * @category    design
 * @package     default_default
 * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
 * @license http://www.magento.com/license/enterprise-edition
 */
?>

<div class="box-left">
    <div class="entry-edit">
        <div class="entry-edit-head"><h4><?php echo Mage::helper('enterprise_giftregistry')->__('General Information') ?></h4></div>
        <fieldset>
            <table cellspacing="2" class="box-left">
                <col width="120" />
                <col />
                <tbody>
                    <tr>
                        <td><strong><?php echo $this->__('Type') ?>:</strong></td>
                        <td><?php echo $this->getTypeName() ?></td>
                    </tr>
                    <tr>
                        <td><strong><?php echo $this->__('Event') ?>:</strong></td>
                        <td><?php echo $this->getEntityTitle() ?></td>
                    </tr>
                    <tr>
                        <td><strong><?php echo $this->__('Message') ?>:</strong></td>
                        <td><?php echo $this->getEntityMessage() ?></td>
                    </tr>
                    <tr>
                        <td><strong><?php echo $this->__('Website') ?>:</strong></td>
                        <td><?php echo $this->getWebsiteName() ?></td>
                    </tr>
                    <tr>
                        <td><strong><?php echo $this->__('Owner') ?>:</strong></td>
                        <td><a href="<?php echo $this->getOwnerUrl() ?>"><?php echo $this->getOwnerName() ?></a></td>
                    </tr>
                    <tr>
                        <td><strong><?php echo $this->__('Created on') ?>:</strong></td>
                        <td><?php echo $this->getCreatedAt() ?></td>
                    </tr>
                    <tr>
                        <td><strong><?php echo $this->__('Recipients') ?>:</strong></td>
                        <td><?php echo $this->getRegistrants() ?></td>
                    </tr>
                </tbody>
            </table>
            <address class="box-right">
                <strong><?php echo $this->__('Shipping Address') ?></strong><br/>
                <?php echo $this->getShippingAddressHtml() ?>
            </address>
        </fieldset>
    </div>
</div>

<div class="box-right">
    <?php echo $this->getChildHtml('sharing_form'); ?>
    <script type="text/javascript">
        Validation.addAllThese([
            ['validate-emails', '<?php echo Mage::helper('core')->jsQuoteEscape(Mage::helper('enterprise_giftregistry')->__('Please enter valid email addresses, separated by comma.')) ?>', function (v) {
                v = v.strip();
                var emails = v.split(/,+/g);
                for (var i = 0, l = emails.length; i < l; i++) {
                    if (!Validation.get('validate-email').test(emails[i])) {
                        return false;
                    }
                }
                return true;
            }]
        ]);</script>
</div>

<div class="clear"></div>

<div class="entry-edit">
    <div class="entry-edit-head"><h4 ><?php echo Mage::helper('enterprise_giftregistry')->__('Gift Registry Items') ?></h4></div>
        <fieldset>
            <form id="update_form" method="post" action="<?php echo $this->getActionUrl() ?>">
                <?php echo $this->getBlockHtml('formkey')?>
                <?php echo $this->getChildHtml('entity_items'); ?>
                <div align="right"><?php echo $this->getChildHtml('update_button'); ?></div>
            </form>
        </fieldset>
    </div>
</div>

<div class="entry-edit">
    <div class="entry-edit-head"><h4 ><?php echo Mage::helper('enterprise_giftregistry')->__('Shopping Cart Items') ?></h4></div>
        <fieldset>
            <?php echo $this->getChildHtml('cart_items'); ?>
        </fieldset>
    </div>
</div>
